//
//  ActivityDetailViewController.m
//  DouBan
//
//  Created by dllo on 16/6/25.
//  Copyright © 2016年 zuzhiming. All rights reserved.
//

#import "ActivityDetailViewController.h"

@interface ActivityDetailViewController ()
@property (nonatomic, retain) UICollectionView *activityDetailCollectionView;

@end

@implementation ActivityDetailViewController

- (void)dealloc
{
    [_dataSourceArray release];
    [super dealloc];
}

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    
    
    [self createNavigitonBarButtonItems];
}


- (void)createNavigitonBarButtonItems
{
    UIBarButtonItem *leftBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"btn_nav_back@2x"] style:UIBarButtonItemStylePlain target:self action:@selector(didClickedLeftBarButton:)];
    leftBarButton.tintColor = [UIColor whiteColor];
    self.navigationItem.leftBarButtonItem = leftBarButton;
    
    UIBarButtonItem *rightBarButton = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:@"btn_nav_share@2x"] style:UIBarButtonItemStylePlain target:self action:@selector(didClickedRightBarButton:)];
    rightBarButton.tintColor = [UIColor whiteColor];
    self.navigationItem.rightBarButtonItem = rightBarButton;
    
}

- (void)didClickedLeftBarButton:(UIBarButtonItem *)leftBarButton
{
    [self.navigationController popViewControllerAnimated:YES];
}

- (void)didClickedRightBarButton:(UIBarButtonItem *)rightBarButton
{
    NSLog(@"分享");
}
- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
